import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
//   {
//     path: '/',
//     name: 'Home',
//     component: Home,
//     meta: { navShow: true, cname: '一级页面' }
//   },
  {
    path: '/ProductList',
    name: 'GoodList',
    component: () => import('./views/GoodList.vue'),
    // meta: { navShow: false, cname: '二级页面' },
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
